export function getIpAddress() {
  let interfaces = require("os").networkInterfaces();
  console.log("interfaces:" + interfaces);
  for (let devName in interfaces) {
    console.log("devName:" + devName);
    let iface = interfaces[devName];
    for (let i = 0; i < iface.length; i++) {
      let alias = iface[i];
      if (
          alias.family === "IPv4" &&
          alias.address !== "127.0.0.1" &&
          !alias.internal
      ) {
        return alias.address;
      }
    }
  }
}
